package com.chpro.freemarker;

public interface ApplicationContext {
	/**
	 * 生成实体
	 * @param tableName 实体名称
	 * @return 是否成功
	 */
	public boolean buildEntity(String tableName) throws Exception;
	
	/**
	 * 生成DAO接口
	 * @param entityName 实体名称
	 * @return
	 */
	public boolean buildDao(String entityName) throws Exception;
	
	/**
	 * 生成DAO实现类
	 * @param entityName
	 * @return
	 */
	public boolean buildDaoImpl(String entityName) throws Exception;
	
	/**
	 * 生成Service接口
	 * @param entityName
	 * @return
	 */
	public boolean buildService(String entityName) throws Exception;
	
	/**
	 * 生成Service实现类
	 * @param entityName
	 * @return
	 */
	public boolean buildServiceImpl(String entityName) throws Exception;
	
	/**
	 * 生成Controller控制器
	 * @param entityName
	 * @return
	 */
	public boolean buildController(String entityName) throws Exception;

	/**
	 * 生成MVC
	 * @return
	 * @throws Exception
	 */
	public boolean buildMVC(String tableName) throws Exception;
}
